﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="GanttChart.aspx.cs" Inherits="Bitirme.Views.GanttChart" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Gantt Diyagramı</title>
    <link href="~/Styles/Site.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="/Styles/jsgantt.css" />
    <script language="javascript" src="/Scripts/jsgantt.js"></script>
</head>
<body>
    <form id="form1" runat="server"><div class="page">
        <div class="header">
            <div class="title">
                <h1> Proje Kaynak Yönetimi</h1>
            </div>
            <div class="loginDisplay">
                <asp:LoginView ID="HeadLoginView" runat="server" EnableViewState="false">
                    <AnonymousTemplate>
                        [ <a href="~/Account/Login.aspx" ID="HeadLoginStatus" runat="server">Giriş Yap</a> ]
                    </AnonymousTemplate>
                    <LoggedInTemplate>
                        Hoş Geldin <span class="bold"><asp:LoginName ID="HeadLoginName" runat="server" /></span>!
                        [ <asp:LoginStatus ID="HeadLoginStatus" runat="server" LogoutAction="Redirect" LogoutText="Log Out" LogoutPageUrl="~/"/> ]
                    </LoggedInTemplate>
                </asp:LoginView>
            </div>

            <div class="clear hideSkiplink">
                <asp:Menu ID="NavigationMenu" runat="server" CssClass="menu" EnableViewState="false" IncludeStyleBlock="false" Orientation="Horizontal">
                    <Items>
                        <asp:MenuItem NavigateUrl="~/Default.aspx" Text="Anasayfa" Value="Anasayfa"/>
                        <asp:MenuItem NavigateUrl="~/About.aspx" Text="Hakkında" Value="Hakkında"/>
                        <asp:MenuItem NavigateUrl="~/Views/ShowProjects.aspx" Text="Projeler" 
                            Value="Projeler">
                            <asp:MenuItem NavigateUrl="~/Views/AddProject.aspx" Text="Yeni Proje Ekle" 
                                Value="Yeni Proje Ekle"></asp:MenuItem>
                        </asp:MenuItem>
                        <asp:MenuItem NavigateUrl="~/Views/ShowEmployees.aspx" Text="Çalışanlar" 
                            Value="Çalışanlar">
                            <asp:MenuItem NavigateUrl="~/Views/AddEmployee.aspx" Text="Yeni Çalışan Ekle" 
                                Value="Yeni Çalışan Ekle"></asp:MenuItem>
                        </asp:MenuItem>
                        <asp:MenuItem Text="Proje Yöneticisi" Value="Proje Yöneticisi" NavigateUrl="~/Views/ShowProjectManagers.aspx">
                            <asp:MenuItem NavigateUrl="~/Views/AddProjectManager.aspx" 
                                Text="Yeni Proje Yöneticisi Ekle" Value="Yeni Proje Yöneticisi Ekle">
                            </asp:MenuItem>
                        </asp:MenuItem>
                    </Items>
                </asp:Menu>
            </div>
        </div>
        <div class="main">
        </br>
        </br>
    <div style="position: relative" class="gantt" id="GanttChartDIV">
    </div>
    </div>
    <div class="clear">
        </div>
    </div>
    <div class="footer">
        
    </div>
    <script>

        var g = new JSGantt.GanttChart('g', document.getElementById('GanttChartDIV'), 'day');

        g.setShowRes(0); // Show/Hide Responsible (0/1)
        g.setShowDur(1); // Show/Hide Duration (0/1)
        g.setShowComp(0); // Show/Hide % Complete(0/1)
        g.setCaptionType('Resource');  // Set to Show Caption (None,Caption,Resource,Duration,Complete)


        if (g) {

            // You can also use the XML file parser 
            JSGantt.parseXML('project.xml', g)//Read data from Tasks.xml 
            g.Draw();
            g.DrawDependencies();

        }

        else {

            alert("not defined");

        }

    </script>
    </form>
</body>
</html>
